Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: read entire file with ArrowReader #25

Merged
merged 2 commits into from
Nov 5, 2023
Merged

Conversation

Jefffrey
Copy link
Collaborator

@Jefffrey Jefffrey commented Nov 5, 2023

Previously wasn't able to read past first stripe in ArrowReader, fix to allow

Comment on lines +120 to +126
Some(stripe) => {
match stripe
.next()
.map(|batch| batch.map_err(|err| ArrowError::ExternalError(Box::new(err))))
{
Some(rb) => Some(rb),
None => self.try_advance_stripe(),
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug was here as after stripe returned None, iterator would not advance any further

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@WenyXu WenyXu merged commit de88a24 into main Nov 5, 2023
6 checks passed
@Jefffrey Jefffrey deleted the fix/read_entire_file branch November 5, 2023 11:03
progval pushed a commit to progval/datafusion-orc that referenced this pull request Mar 6, 2024
Allow to convert the internal error to anyhow::Error
waynexia pushed a commit that referenced this pull request Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants